Optimal. Leaf size=204 \[ -\frac {1}{a e f^2 (d+e x)}-\frac {\sqrt {c} \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a \sqrt {b-\sqrt {b^2-4 a c}} e f^2}-\frac {\sqrt {c} \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a \sqrt {b+\sqrt {b^2-4 a c}} e f^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.21, antiderivative size = 204, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {1156, 1137,
1180, 211} \begin {gather*} -\frac {\sqrt {c} \left (\frac {b}{\sqrt {b^2-4 a c}}+1\right ) \text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a e f^2 \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {\sqrt {c} \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {\sqrt {b^2-4 a c}+b}}\right )}{\sqrt {2} a e f^2 \sqrt {\sqrt {b^2-4 a c}+b}}-\frac {1}{a e f^2 (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 1137
Rule 1156
Rule 1180
Rubi steps
\begin {align*} \int \frac {1}{(d f+e f x)^2 \left (a+b (d+e x)^2+c (d+e x)^4\right )} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{x^2 \left (a+b x^2+c x^4\right )} \, dx,x,d+e x\right )}{e f^2}\\ &=-\frac {1}{a e f^2 (d+e x)}+\frac {\text {Subst}\left (\int \frac {-b-c x^2}{a+b x^2+c x^4} \, dx,x,d+e x\right )}{a e f^2}\\ &=-\frac {1}{a e f^2 (d+e x)}-\frac {\left (c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right )\right ) \text {Subst}\left (\int \frac {1}{\frac {b}{2}+\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx,x,d+e x\right )}{2 a e f^2}-\frac {\left (c \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right )\right ) \text {Subst}\left (\int \frac {1}{\frac {b}{2}-\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx,x,d+e x\right )}{2 a e f^2}\\ &=-\frac {1}{a e f^2 (d+e x)}-\frac {\sqrt {c} \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a \sqrt {b-\sqrt {b^2-4 a c}} e f^2}-\frac {\sqrt {c} \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a \sqrt {b+\sqrt {b^2-4 a c}} e f^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 209, normalized size = 1.02 \begin {gather*} -\frac {\frac {2}{d+e x}+\frac {\sqrt {2} \sqrt {c} \left (b+\sqrt {b^2-4 a c}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\sqrt {2} \sqrt {c} \left (-b+\sqrt {b^2-4 a c}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} \sqrt {b+\sqrt {b^2-4 a c}}}}{2 a e f^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.20, size = 172, normalized size = 0.84
method | result | size |
default | \(\frac {-\frac {1}{a e \left (e x +d \right )}+\frac {\munderset {\textit {\_R} =\RootOf \left (e^{4} c \,\textit {\_Z}^{4}+4 d \,e^{3} c \,\textit {\_Z}^{3}+\left (6 d^{2} e^{2} c +e^{2} b \right ) \textit {\_Z}^{2}+\left (4 d^{3} e c +2 d e b \right ) \textit {\_Z} +d^{4} c +d^{2} b +a \right )}{\sum }\frac {\left (-\textit {\_R}^{2} c \,e^{2}-2 \textit {\_R} c d e -c \,d^{2}-b \right ) \ln \left (x -\textit {\_R} \right )}{2 e^{3} c \,\textit {\_R}^{3}+6 d \,e^{2} c \,\textit {\_R}^{2}+6 c \,d^{2} e \textit {\_R} +2 c \,d^{3}+e b \textit {\_R} +b d}}{2 a e}}{f^{2}}\) | \(172\) |
risch | \(-\frac {1}{a e \,f^{2} \left (e x +d \right )}+\frac {\left (\munderset {\textit {\_R} =\RootOf \left (\left (16 f^{8} e^{4} c^{2} a^{5}-8 b^{2} f^{8} e^{4} c \,a^{4}+b^{4} f^{8} e^{4} a^{3}\right ) \textit {\_Z}^{4}+\left (12 a^{2} b \,c^{2} e^{2} f^{4}-7 a \,b^{3} c \,e^{2} f^{4}+b^{5} e^{2} f^{4}\right ) \textit {\_Z}^{2}+c^{3}\right )}{\sum }\textit {\_R} \ln \left (\left (\left (40 a^{5} c^{2} e^{5} f^{8}-22 a^{4} b^{2} c \,e^{5} f^{8}+3 a^{3} b^{4} e^{5} f^{8}\right ) \textit {\_R}^{4}+\left (25 a^{2} b \,c^{2} e^{3} f^{4}-14 a \,b^{3} c \,e^{3} f^{4}+2 b^{5} e^{3} f^{4}\right ) \textit {\_R}^{2}+2 c^{3} e \right ) x +\left (40 a^{5} c^{2} d \,e^{4} f^{8}-22 a^{4} b^{2} c d \,e^{4} f^{8}+3 a^{3} b^{4} d \,e^{4} f^{8}\right ) \textit {\_R}^{4}+\left (4 a^{4} c^{2} e^{3} f^{6}-5 a^{3} b^{2} c \,e^{3} f^{6}+a^{2} b^{4} e^{3} f^{6}\right ) \textit {\_R}^{3}+\left (25 a^{2} b \,c^{2} d \,e^{2} f^{4}-14 a \,b^{3} c d \,e^{2} f^{4}+2 b^{5} d \,e^{2} f^{4}\right ) \textit {\_R}^{2}+2 c^{3} d \right )\right )}{2}\) | \(376\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1413 vs.
\(2 (167) = 334\).
time = 0.37, size = 1413, normalized size = 6.93 \begin {gather*} -\frac {\sqrt {\frac {1}{2}} {\left (a f^{2} x e^{2} + a d f^{2} e\right )} \sqrt {\frac {{\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{{\left (a^{6} b^{2} - 4 \, a^{7} c\right )} f^{8}}} - b^{3} + 3 \, a b c}{{\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4}}} e^{\left (-1\right )} \log \left (-2 \, {\left (b^{2} c^{2} - a c^{3}\right )} x e + \sqrt {\frac {1}{2}} {\left ({\left (a^{3} b^{4} - 6 \, a^{4} b^{2} c + 8 \, a^{5} c^{2}\right )} f^{6} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{{\left (a^{6} b^{2} - 4 \, a^{7} c\right )} f^{8}}} e + {\left (b^{5} - 5 \, a b^{3} c + 4 \, a^{2} b c^{2}\right )} f^{2} e\right )} \sqrt {\frac {{\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{{\left (a^{6} b^{2} - 4 \, a^{7} c\right )} f^{8}}} - b^{3} + 3 \, a b c}{{\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4}}} e^{\left (-1\right )} - 2 \, {\left (b^{2} c^{2} - a c^{3}\right )} d\right ) - \sqrt {\frac {1}{2}} {\left (a f^{2} x e^{2} + a d f^{2} e\right )} \sqrt {\frac {{\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{{\left (a^{6} b^{2} - 4 \, a^{7} c\right )} f^{8}}} - b^{3} + 3 \, a b c}{{\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4}}} e^{\left (-1\right )} \log \left (-2 \, {\left (b^{2} c^{2} - a c^{3}\right )} x e - \sqrt {\frac {1}{2}} {\left ({\left (a^{3} b^{4} - 6 \, a^{4} b^{2} c + 8 \, a^{5} c^{2}\right )} f^{6} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{{\left (a^{6} b^{2} - 4 \, a^{7} c\right )} f^{8}}} e + {\left (b^{5} - 5 \, a b^{3} c + 4 \, a^{2} b c^{2}\right )} f^{2} e\right )} \sqrt {\frac {{\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{{\left (a^{6} b^{2} - 4 \, a^{7} c\right )} f^{8}}} - b^{3} + 3 \, a b c}{{\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4}}} e^{\left (-1\right )} - 2 \, {\left (b^{2} c^{2} - a c^{3}\right )} d\right ) - \sqrt {\frac {1}{2}} {\left (a f^{2} x e^{2} + a d f^{2} e\right )} \sqrt {-\frac {{\left ({\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{{\left (a^{6} b^{2} - 4 \, a^{7} c\right )} f^{8}}} + b^{3} - 3 \, a b c\right )} e^{\left (-2\right )}}{{\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4}}} \log \left (-2 \, {\left (b^{2} c^{2} - a c^{3}\right )} x e - 2 \, {\left (b^{2} c^{2} - a c^{3}\right )} d + \sqrt {\frac {1}{2}} {\left ({\left (a^{3} b^{4} - 6 \, a^{4} b^{2} c + 8 \, a^{5} c^{2}\right )} f^{6} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{{\left (a^{6} b^{2} - 4 \, a^{7} c\right )} f^{8}}} e - {\left (b^{5} - 5 \, a b^{3} c + 4 \, a^{2} b c^{2}\right )} f^{2} e\right )} \sqrt {-\frac {{\left ({\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{{\left (a^{6} b^{2} - 4 \, a^{7} c\right )} f^{8}}} + b^{3} - 3 \, a b c\right )} e^{\left (-2\right )}}{{\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4}}}\right ) + \sqrt {\frac {1}{2}} {\left (a f^{2} x e^{2} + a d f^{2} e\right )} \sqrt {-\frac {{\left ({\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{{\left (a^{6} b^{2} - 4 \, a^{7} c\right )} f^{8}}} + b^{3} - 3 \, a b c\right )} e^{\left (-2\right )}}{{\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4}}} \log \left (-2 \, {\left (b^{2} c^{2} - a c^{3}\right )} x e - 2 \, {\left (b^{2} c^{2} - a c^{3}\right )} d - \sqrt {\frac {1}{2}} {\left ({\left (a^{3} b^{4} - 6 \, a^{4} b^{2} c + 8 \, a^{5} c^{2}\right )} f^{6} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{{\left (a^{6} b^{2} - 4 \, a^{7} c\right )} f^{8}}} e - {\left (b^{5} - 5 \, a b^{3} c + 4 \, a^{2} b c^{2}\right )} f^{2} e\right )} \sqrt {-\frac {{\left ({\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4} \sqrt {\frac {b^{4} - 2 \, a b^{2} c + a^{2} c^{2}}{{\left (a^{6} b^{2} - 4 \, a^{7} c\right )} f^{8}}} + b^{3} - 3 \, a b c\right )} e^{\left (-2\right )}}{{\left (a^{3} b^{2} - 4 \, a^{4} c\right )} f^{4}}}\right ) + 2}{2 \, {\left (a f^{2} x e^{2} + a d f^{2} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 3.25, size = 258, normalized size = 1.26 \begin {gather*} \operatorname {RootSum} {\left (t^{4} \cdot \left (256 a^{5} c^{2} e^{4} f^{8} - 128 a^{4} b^{2} c e^{4} f^{8} + 16 a^{3} b^{4} e^{4} f^{8}\right ) + t^{2} \cdot \left (48 a^{2} b c^{2} e^{2} f^{4} - 28 a b^{3} c e^{2} f^{4} + 4 b^{5} e^{2} f^{4}\right ) + c^{3}, \left ( t \mapsto t \log {\left (x + \frac {- 64 t^{3} a^{5} c^{2} e^{3} f^{6} + 48 t^{3} a^{4} b^{2} c e^{3} f^{6} - 8 t^{3} a^{3} b^{4} e^{3} f^{6} - 10 t a^{2} b c^{2} e f^{2} + 10 t a b^{3} c e f^{2} - 2 t b^{5} e f^{2} + a c^{3} d - b^{2} c^{2} d}{a c^{3} e - b^{2} c^{2} e} \right )} \right )\right )} - \frac {1}{a d e f^{2} + a e^{2} f^{2} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.87, size = 2500, normalized size = 12.25 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________